package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository // 加和不加没有影响
public interface PermissionDao {


    List<Permission> findPermissionsByRoleId(Integer roleId);

    Page<Permission> findPage(String queryString);

    void add(Permission permission);

    void delete(Integer id);

    Permission findById(Integer id);

    void updatePermission(Permission permission);

    List<Permission> findAll();
}
